# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-teletype
_pkgname=teletype
pkgver=1.3.4
pkgrel=3
pkgdesc="high-level cross platform tty library"
options="!check" # No testsuite
url="https://pypi.org/project/teletype/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-installer py3-wheel py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/teletype*.whl
}

sha512sums="
4580aed4be710dc49d9bff7cbbd8c678067bd4f61266f97ced19555860bd6b634939d66a2484469f03454878def981278168a542b3faf83ef038874cbf4e2133  teletype-1.3.4.tar.gz
"
